package top.ffhome.common.core.domain.scope;

import java.util.List;

/**
 * 数据权限过滤结果
 */
public abstract class LocalDataScope {
    private static final ThreadLocal<List<Field>> WRAPPER = new ThreadLocal<>();

    public static void set(List<Field> wrapper) {
        WRAPPER.set(wrapper);
    }

    public static List<Field> get() {
        return WRAPPER.get();
    }

    public static void remove() {
        WRAPPER.remove();
    }
}
